package com.yuke.cloud.service.cmc.service;

import com.yuke.cloud.common.core.support.IService;
import com.yuke.cloud.service.cmc.dto.CmsRedReceiveDto;
import com.yuke.cloud.service.cmc.entity.CmsRedReceive;

import java.util.List;


/**
 * @author Created by zn on 2020/09/19.
 */
public interface CmsRedReceiveService extends IService<CmsRedReceive> {
    /**
     * 检查今天是否已经领取红包签到
     * @param userId
     * @return
     */
    Integer checkRedReceive(Long userId);
    /**
     * 领取红包签到
     * @param cmsRedReceive
     * @return
     */
    Integer saveRedReceive(CmsRedReceive cmsRedReceive);
    /**
     * 获取7天内领取红包签到的信息
     * @param userId
     * @return
     */
    List<CmsRedReceiveDto> getRedReceive(Long userId);
    /**
     * 获取红包签到的信息
     * @param cmsRedReceiveDto
     * @return
     */
    List<CmsRedReceiveDto> selectRedReceiveByCondition(CmsRedReceiveDto cmsRedReceiveDto);

    /**
     * 更改红包签到的信息
     * @param redReceiveId
     * @return
     */
    Integer updateRedReceiveExpire(Long redReceiveId);

    /**
     * 更改红包签到的信息
     * @param redReceiveId
     * @return
     */
    Integer updateRedReceiveUsered(Long redReceiveId,String orderIds);
}
